package cn.edu.neusoft.wuguangsheng.market.model;

import cn.edu.neusoft.wuguangsheng.market.bean.CartPriceBean;
import cn.edu.neusoft.wuguangsheng.market.iface.CartPriceIface;
import cn.edu.neusoft.wuguangsheng.market.listener.TListener;
import cn.edu.neusoft.wuguangsheng.market.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

/**
 * Created by little on 2018/4/26.
 */

public class CartPriceModel extends RetrofitBaseModel implements CartPriceIface<CartPriceBean> {
    private AllService allService;
    private Retrofit retrofit;
    public CartPriceModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void showCartPrice(String uid, String mrid, TListener<CartPriceBean> tListener) {

        Call<CartPriceBean> call=allService.showCartPrice(uid,mrid);
        callenqueue(call,tListener);
    }
}
